package com.andyage.admin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.andyage.admin.dao.AdreceiverAddressMapper;
import com.andyage.admin.service.IAdReceiverAddressService;
import com.andyage.util.JsonContent;
import com.andyage.admin.bean.AdreceiveraddressBean;
@Service
public class AdReceiverAddressServiceImpl implements IAdReceiverAddressService {
	@Resource
	private AdreceiverAddressMapper addressMapper;
	@Override
	public String queryReceiverAddress(AdreceiveraddressBean addressbean) throws Exception {
		List<AdreceiveraddressBean> list=addressMapper.queryReceiverAddress(addressbean);
		int total=addressMapper.queryReceiverAddressCount(addressbean);
		String json=JsonContent.getJsonArray(list, total);
		return json;
	}

}
